<template>
 <div>
    <h1 v-show="flag">v-show盒子-{{ msg }}</h1>
    <h1 v-if="flag">v-if盒子-{{ msg }}</h1>
 </div>
</template>

<script>
 export default {
   data () {
     return {
        flag:true,
     }
   },
   methods: {

   },
 }
</script>

<style scoped lang='less'>

</style>